package com.bwie.api;

import org.springframework.http.ResponseEntity;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * 商品分类 api
 */
@RequestMapping("/item/category")
public interface CategoryApi {
    /**
     * 根据商品分类的id集合查询商品分类的名称
     * @param ids
     * @return
     */
    @RequestMapping("/names")
     List<String> queryNamesByIds(@RequestParam("ids")List<Long> ids);

}
